<?php
namespace common\sources\read\loginuserpower;

use common\models\craftsman\loginuserpower;

class LoginUserPowerAccess implements ILoginUserPowerAccess
{
    public function getUserPower($userid)
    {
        $user_power = loginuserpower::find()
            ->select("powerids")
            ->where(['userid' => $userid])
            ->scalar();
        return $user_power;
    }
}